package com.example.user

import com.witmed.lib_base.BaseEntity
import com.witmed.lib_base.BaseModel
import com.witmed.lib_http.HttpType
import com.witmed.lib_http.NetWorkFactory
import io.reactivex.Observable
import okhttp3.RequestBody

class LoginModel():BaseModel() {
    override fun request(vararg body: RequestBody):Observable<BaseEntity> {
        val observ = NetWorkFactory.factory(HttpType.SIGN).create(ApiService::class.java)
            .login(body[0])
       return changeOB(observ)
    }

    override fun cleared() {

    }
}